import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';

import Login from '../views/Login.vue';
import Client from '../views/KvmH5/Client.vue';
import Home from '../views/Home/Home.vue';
import EditConnection from '../views/Connection/EditConnection.vue';
import DeleteConnection from '../views/Connection/DeleteConnection.vue';
import TrustedSitesList from '../views/TrustList/TrustedSitesList.vue';
import Help from '../views/Help.vue';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  {
    path: '/client',
    name: 'client',
    component: Client
  },
  {
    path: '/edit-connection',
    name: 'edit-connection',
    component: EditConnection
  },
  {
    path: '/delete-connection',
    name: 'delete-connection',
    component: DeleteConnection
  },
  {
    path: '/trusted-sites-list',
    name: 'trusted-sites-list',
    component: TrustedSitesList
  },
  {
    path: '/help',
    name: 'help',
    component: Help
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});
export default router;
